package com.zhiyou.demo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhiyou.demo.service.ExamService;

@Controller
@RequestMapping("/admin")
public class ExamController {
	
	@Autowired
	ExamService service;
	
	@RequestMapping("index.do")
	public String index(Model model){
		
        List list = service.query();
		System.out.println(">>>>>>>>>>>>>>>>>>>>" + list);
		
//		model.addAttribute("list", list);
		
		return "index";
	}

}
